Control structure

if
if (condition){
then_block;
} else {
else_block;
}
; code to set FLAGS
jxx else_block ;xx .
; then block
jmp endif
else_block:
; else_block
elseif:
while
while (condition) {
body of loop;
}
while:
;code to set FLAGS based on condition
jxx endwhile ;xx .
; body of loop
jmp while
endwhile;
do while
do{
body of loop;
}while (condition);
do:
;body of loop
; .
jxx do ;xx .